package ltd.dujiabao.common.event;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

/**
 * @author Bowie Du
 * @date 2025/7/13 19:53
 */
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
@Accessors(chain = true)
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class InventoryDeductedEvent {
    private Long orderId;
    private Long userId;
    private Long productId;
    private int quantity;
    private BigDecimal amount;
}
